# -*- coding: utf-8 -*-
from aop.api.base import BaseApi

class PushMessageConfirmParam(BaseApi):
    """手动调用确认api，确认消息已经被消费成功。仅当使用查询式获取失败消息的api时，才需要使用

    References
    ----------
    https://open.1688.com/api/api.htm?ns=cn.alibaba.open&n=push.message.confirm&v=1&cat=push

    """

    def __init__(self, domain=None):
        BaseApi.__init__(self, domain)
        self.msgIdList = None

    def get_api_uri(self):
        return '1/cn.alibaba.open/push.message.confirm'

    def get_required_params(self):
        return ['msgIdList']

    def get_multipart_params(self):
        return []

    def need_sign(self):
        return True

    def need_timestamp(self):
        return False

    def need_auth(self):
        return False

    def need_https(self):
        return False

    def is_inner_api(self):
        return False
